home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-c.dk!news
- From: Lec - Information <info@lec.dk>
- Newsgroups: comp.lang.c++
- Subject: Re: VC++ 4.0: How can I export functions in a DLL
- Date: 14 Mar 1996 11:57:36 GMT
- Organization: lec
- Message-ID: <4i91jg$6b7@news.uni-c.dk>
- References: <4houad$r77@news.uni-c.dk>
- NNTP-Posting-Host: info.lec.dk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- After strugling a week or so I realized that using VC++ 4.0 to export functions/data from a DLL
- apparently does NOT show in Win95' Quick view (that means there will be no export table in the
- Dll!).
-
- I found af good hint under /EXPORT in the books online where it states that you can export
- functions in 3 different ways.
-
- 1. the famous __declspec (dllexport).
- 2. specify /EXPORT to the linker (exporting the function name)
- 3. do like in win 3.1 namely make a .DEF file where the functions explicitly is exported.
-
- My original task was to access functions in a c++ - Dll from Delphi2.0 - and I succeded this
- when I used way 2 and 3. Exporting using the first way I could not access the functions from
- Delphi2.0 - BUT there was no problem in doing it from VC++4.0.
-
-